package com.guanzi.netty.protocol;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author 管子
 * @date 2025/3/18 20:17
 * @description: SequenceIdGenerator 类
 */
public class SequenceIdGenerator {

    private static final AtomicInteger id = new AtomicInteger();

    public static int nextId() {
        return id.incrementAndGet();
    }

}
